<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "corp_log".
 *
 * @property integer $id
 * @property string $title
 * @property string $url
 * @property integer $create_time
 */
class CorpLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'corp_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['id', 'create_time'], 'integer'],
            [['title'], 'string', 'max' => 20],
            [['url'], 'string', 'max' => 60],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'url' => 'Url',
            'create_time' => 'Create Time',
        ];
    }
}
